package com.zthz.douxing.command

import com.zthz.douxing.utils.ValidateConstanst
import grails.validation.Validateable

/**
 * Created by zsw on 3/29/14.
 */
@Validateable
class FetchDataCommand {


    String type

    String date

    String cityCode

    static constraints = {

        type blank: true,nullable:true,pattern:ValidateConstanst.fetchDataTypePattern

        date blank: true,nullable:true, pattern:ValidateConstanst.fetchDataDatePattern

        cityCode blank: false,pattern:ValidateConstanst.fetchDataCodePattern

    }


}
